<template>
  <div>
    <div>
      <van-nav-bar @click-left="$router.go(-1)" title="设置">
        <template #left>
          <van-icon name="arrow-left" @click="$router.go(-1)" />
        </template>
      </van-nav-bar>
      <van-nav-bar >
        <template #left>
          <p>设置密码</p>
        </template>
        <template #right>
          <van-icon name="arrow"  @click="$router.push('/setnewpass')"/>
        </template>
      </van-nav-bar>
      <van-button type="danger" size="large" @click="homeback">退出登录</van-button>
    </div>
  </div>
</template>

<script>
export default {
    methods: {
        homeback() {
            localStorage.removeItem("login");
            this.$router.push("/login")
        }
    },
};
</script>

<style lang="scss" scoped>
</style>